<script>
	export default {
		globalData:{
			myCloud:null
		},
		onLaunch: function() {
			console.log('App Launch');
			// #ifdef APP-PLUS
			this.testCode();
			// #endif
			this.initCloud();
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			initCloud(){
				getApp().globalData.myCloud = uniCloud.init({
					provider: 'aliyun',
					spaceId: '58ba009c-a4e6-4cd3-8f15-e6b4813c7a69',
					clientSecret: 'KSnVurTa+QnR9kczjz07Tg=='
				});
			},
			testCode(){
				plus.screen.lockOrientation('portrait-primary');
				if (plus.device.isWakelock()) {} else {
					plus.device.setWakelock(true)
				}
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
